<?php
    require_once( CLASS_REQUIRE_INDEX );
    require_once( CLASS_REQUIRE_MODEL );
    require_once( CLASS_FUNCTIONS );    
    require_once( CLASS_EMAIL );    
    require_once( MODEL_DIR . "AgendaModel.class.php" );
    

    class AgendaCinemaController extends IndexController {

            function __construct(){
                parent::__construct();
                  
               $this->model = new AgendaCinemaModel();
            }
             public function defaultAction()
            {
                
               $Agenda = $this->model->get_agenda_cinema();
               
              #passa a variavel do controller($Agenda)para a variavel do html#
                parent::setAttribute('agenda',$Agenda);
                
                parent::setAttribute("lateral","main_lateral.html");
                parent::setAttribute("view","main_agenda_cinema.html");
                parent::execute("main_index.html");
                
              
                 
            } 
            
    }


?>
